package sddz.foodmanage.model;

import java.util.List;

/**
 * @Date:2019/7/13
 * @Author:lbb
 * 采购中数据
 */

public class InpurchaingBean {
    /**
     * message : 成功
     * status_code : 200
     * data : {"id":65,"number":"20190712007638","total_price":0.23,"supplier_id":75,"detachment_id":76,"type":1,"grade":1,"created_at":"2019-07-12 17:02:18","updated_at":"2019-07-12 17:05:02","goods":[{"id":321,"name":"黑豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/194/411562740505.jpg"}],"unit":"斤","price":"12.00","amount":1,"amount_data":1,"user_id":76,"order_id":65,"goods_id":194,"created_at":"2019-07-12 17:02:18","updated_at":"2019-07-12 17:05:02","total_price":"12.00"},{"id":322,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":1,"amount_data":1,"user_id":76,"order_id":65,"goods_id":195,"created_at":"2019-07-12 17:02:18","updated_at":"2019-07-12 17:05:02","total_price":"11.00"}],"detachment":{"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-06 16:02:46","deleted_at":null},"supplier":{"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null},"comment":{"id":0}}
     */

    private String message;
    private int status_code;
    private DataBean data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 65
         * number : 20190712007638
         * total_price : 0.23
         * supplier_id : 75
         * detachment_id : 76
         * type : 1
         * grade : 1
         * created_at : 2019-07-12 17:02:18
         * updated_at : 2019-07-12 17:05:02
         * goods : [{"id":321,"name":"黑豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/194/411562740505.jpg"}],"unit":"斤","price":"12.00","amount":1,"amount_data":1,"user_id":76,"order_id":65,"goods_id":194,"created_at":"2019-07-12 17:02:18","updated_at":"2019-07-12 17:05:02","total_price":"12.00"},{"id":322,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":1,"amount_data":1,"user_id":76,"order_id":65,"goods_id":195,"created_at":"2019-07-12 17:02:18","updated_at":"2019-07-12 17:05:02","total_price":"11.00"}]
         * detachment : {"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-06 16:02:46","deleted_at":null}
         * supplier : {"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null}
         * comment : {"id":0}
         */

        private int id;
        private String number;
        private double total_price;
        private int supplier_id;
        private int detachment_id;
        private int type;
        private int grade;
        private String created_at;
        private String updated_at;
        private DetachmentBean detachment;
        private SupplierBean supplier;
        private CommentBean comment;
        private List<GoodsBean> goods;
        //==========================================================================================
        //配送时间
        private String delivery;

        public void setDelivery_time(String time){
            this.delivery = time;
        }

        public String getDelivery_time(){
            return this.delivery;
        }
        //==========================================================================================

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public double getTotal_price() {
            return total_price;
        }

        public void setTotal_price(double total_price) {
            this.total_price = total_price;
        }

        public int getSupplier_id() {
            return supplier_id;
        }

        public void setSupplier_id(int supplier_id) {
            this.supplier_id = supplier_id;
        }

        public int getDetachment_id() {
            return detachment_id;
        }

        public void setDetachment_id(int detachment_id) {
            this.detachment_id = detachment_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getGrade() {
            return grade;
        }

        public void setGrade(int grade) {
            this.grade = grade;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public DetachmentBean getDetachment() {
            return detachment;
        }

        public void setDetachment(DetachmentBean detachment) {
            this.detachment = detachment;
        }

        public SupplierBean getSupplier() {
            return supplier;
        }

        public void setSupplier(SupplierBean supplier) {
            this.supplier = supplier;
        }

        public CommentBean getComment() {
            return comment;
        }

        public void setComment(CommentBean comment) {
            this.comment = comment;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class DetachmentBean {
            /**
             * id : 76
             * name : 一中队
             * type : 2
             * status : 1
             * avatar : /storage/default/avatar.jpg
             * supplier_id : 75
             * service_ended_at : 2019-07-06 00:00:00
             * created_at : 2019-07-06 16:02:46
             * updated_at : 2019-07-06 16:02:46
             * deleted_at : null
             */

            private int id;
            private String name;
            private int type;
            private int status;
            private String avatar;
            private int supplier_id;
            private String service_ended_at;
            private String created_at;
            private String updated_at;
            private Object deleted_at;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public int getSupplier_id() {
                return supplier_id;
            }

            public void setSupplier_id(int supplier_id) {
                this.supplier_id = supplier_id;
            }

            public String getService_ended_at() {
                return service_ended_at;
            }

            public void setService_ended_at(String service_ended_at) {
                this.service_ended_at = service_ended_at;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public Object getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(Object deleted_at) {
                this.deleted_at = deleted_at;
            }
        }

        public static class SupplierBean {
            /**
             * id : 75
             * name : 甲
             * type : 3
             * status : 1
             * avatar : /storage/default/avatar.jpg
             * supplier_id : 0
             * service_ended_at : null
             * created_at : 2019-07-06 15:56:01
             * updated_at : 2019-07-06 15:56:01
             * deleted_at : null
             */

            private int id;
            private String name;
            private int type;
            private int status;
            private String avatar;
            private int supplier_id;
            private Object service_ended_at;
            private String created_at;
            private String updated_at;
            private Object deleted_at;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public int getSupplier_id() {
                return supplier_id;
            }

            public void setSupplier_id(int supplier_id) {
                this.supplier_id = supplier_id;
            }

            public Object getService_ended_at() {
                return service_ended_at;
            }

            public void setService_ended_at(Object service_ended_at) {
                this.service_ended_at = service_ended_at;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public Object getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(Object deleted_at) {
                this.deleted_at = deleted_at;
            }
        }

        public static class CommentBean {
            /**
             * id : 0
             */

            private int id;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }

        public static class GoodsBean {
            /**
             * id : 321
             * name : 黑豆
             * classification_id : 3
             * imgs : [{"url":"/storage/users/75/imgs/194/411562740505.jpg"}]
             * unit : 斤
             * price : 12.00
             * amount : 1
             * amount_data : 1
             * user_id : 76
             * order_id : 65
             * goods_id : 194
             * created_at : 2019-07-12 17:02:18
             * updated_at : 2019-07-12 17:05:02
             * total_price : 12.00
             */

            private int id;
            private String name;
            private int classification_id;
            private String unit;
            private String price;
            private Double amount;

            private Double amount_data;

            public Double getAmount() {
                return amount;
            }

            public void setAmount(Double amount) {
                this.amount = amount;
            }

            public Double getAmount_data() {
                return amount_data;
            }

            public void setAmount_data(Double amount_data) {
                this.amount_data = amount_data;
            }

            private int user_id;
            private int order_id;
            private int goods_id;
            private String created_at;
            private String updated_at;
            private String total_price;
            private List<ImgsBean> imgs;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getClassification_id() {
                return classification_id;
            }

            public void setClassification_id(int classification_id) {
                this.classification_id = classification_id;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }



            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public int getOrder_id() {
                return order_id;
            }

            public void setOrder_id(int order_id) {
                this.order_id = order_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getTotal_price() {
                return total_price;
            }

            public void setTotal_price(String total_price) {
                this.total_price = total_price;
            }

            public List<ImgsBean> getImgs() {
                return imgs;
            }

            public void setImgs(List<ImgsBean> imgs) {
                this.imgs = imgs;
            }

            public static class ImgsBean {
                /**
                 * url : /storage/users/75/imgs/194/411562740505.jpg
                 */

                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }
        }
    }
}
